<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>企业信息管理系统 - 通讯录管理</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="企业,信息,管理">
<meta http-equiv="description" content="企业信息管理系统 - 通讯录管理">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<link rel="stylesheet" type="text/css" href="css/styles.css">

</head>
<body>
<div align="center"><f:view>
	<table height="100%" width="100%" border="0" cellspacing="0"
		cellpadding="0">
		<tr>
			<td colspan="2" height="108">
			<table height="108" background="images/banner.jpg" border="0"
				cellspacing="0" cellpadding="0" width="100%">
				<tr>
					<td></td>
				</tr>
			</table>
			</td>
		</tr>
		<tr>
			<td width="160" bgcolor="#EEEEEE" valign="top" height="100%"><%@ include
				file="inc/menu.jsp"%></td>
			<td align="left" valign="top"><h:form>
				<TABLE width="100%" class="position">
					<TR>
						<TD>当前位置：通讯录管理&gt;&gt;新增联系人</TD>
						<TD align="right"><h:commandLink value="返回通讯录主页面"
							action="#{addressAction.list}" immediate="true" /></TD>
						<TD width="20"></TD>
					</TR>
				</TABLE>
				<h:panelGrid columns="2" width="100%">
					<h:outputText value="姓名" />
					<h:inputText value="#{addressAction.name}" maxlength="50"
						required="true" />
					<h:outputText value="性别" />
					<h:inputText value="#{addressAction.sex}" maxlength="10" />
					<h:outputText value="手机" />
					<h:inputText value="#{addressAction.mobile}" maxlength="20"
						required="true" />
					<h:outputText value="Email" />
					<h:inputText value="#{addressAction.email}" maxlength="50"
						required="true" />
					<h:outputText value="QQ号码" />
					<h:inputText value="#{addressAction.qq}" maxlength="20" />
					<h:outputText value="工作单位" />
					<h:inputText value="#{addressAction.company}" maxlength="100" />
					<h:outputText value="地址" />
					<h:inputText value="#{addressAction.address}" maxlength="100" />
					<h:outputText value="邮编" />
					<h:inputText value="#{addressAction.postcode}" maxlength="10" />
					<h:commandButton value="提交" action="#{addressAction.insert}" />
				</h:panelGrid>
			</h:form></td>
		</tr>
		<tr>
			<td colspan="2" align="center"><%@ include file="inc/foot.jsp"%>
			</td>
		</tr>
	</table>
</f:view></div>
</body>
</html>
